$(document).ready(function() {
	$("input[name='tuan_create_group']").change(function(){
		if ($("input[name='tuan_create_group']:checked").val() == '1'){
			$.ajax({
				type: "GET",
				url: "/tuans/buyer_create",
				success: function(html)
				{
					$("#tuan_create_block").html(html);
				}
			});
		}else if ($("input[name='tuan_create_group']:checked").val() == '2'){
			$.ajax({
				type: "GET",
				url: "/tuans/seller_create",
				success: function(html)
				{
					$("#tuan_create_block").html(html);
				}
			});
		}
	});
});

